#include "Map.h"
#include "TextureManager.h"
#include "Game.h"


Map::Map()
{
	for (int x = 0; x < NUM_TILES_X; ++x)
	{
		for (int y = 0; y < NUM_TILES_Y; ++y)
		{
			mMap[x][y] = { "grid", 0 };
		}
	}
}

Map::~Map()
{
}

void Map::Update()
{
}

void Map::Draw()
{
	for (int x = 0; x < NUM_TILES_X; ++x)
	{
		for (int y = 0; y < NUM_TILES_Y; ++y)
		{
			TextureManager::Instance()->Draw(mMap[x][y].textureID, x * 32, y * 32, 32, 32, Game::Instance()->getRenderer());
		}
	}
}